#ifndef __COMM_H__
#define __COMM_H__

#include <reg52.h>
#include <intrins.h>

#define DELAY_MS 50




#define EXT0_VECTOR 0  /* 0x03 external interrupt 0 */
#define TIM0_VECTOR 1  /* 0x0b timer 0 */
#define EXT1_VECTOR 2  /* 0x13 external interrupt 1 */
#define TIM1_VECTOR 3  /* 0x1b timer 1 */
#define UART0_VECTOR 4 /* 0x23 serial port 0 */

// typedef unsigned char uint8_t;
// typedef unsigned int uint16_t;
// typedef unsigned long uint32_t;

typedef unsigned long u32;	   //���������ͽ�����������
typedef unsigned int u16;	
typedef unsigned char u8;



sbit NPN_P = P1 ^ 3;

sbit BUTTON01 = P3 ^ 2;

sbit P2_0 = P2 ^ 0;
sbit P1_0 = P1 ^ 0;




 void delay(int a);


// void init();
#endif


